import Vue from 'vue'

import App from './App.vue'
import router from './router'
import axios from 'axios';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { VueJsonp } from 'vue-jsonp';
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
    ak: 'xQ8PhXkGnHq0wV5aGbtNGlGbaRNrUT5t'
})
Vue.use(VueJsonp)
Vue.config.productionTip = false
let instance = axios.create({
        baseURL: 'http://192.168.80.191:9090',
        timeout: 50000
    })
    //将axios绑定到vue全局变量
Vue.prototype.$http = instance;

Vue.use(ElementUI)
new Vue({

    router,
    render: h => h(App) //挂载点
}).$mount('#app')